/*
 * Created by LiuYou on 2020/12/9.
 *
 */

#include "SalesOrder.hpp"
#include "Context.hpp"
#include "Tax.hpp"

Strategy::SalesOrder::SalesOrder(Strategy::Tax* tax) : tax(tax) {}

double Strategy::SalesOrder::calculateTax() {
    // ...
    Context context;

    double value = tax->calculate(context);

    // ...


    return value;
}
